package com.exchange.interfaces.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.exchange.interfaces.mapper.JgPublishDirectoryDetailMapper;
import com.exchange.interfaces.domain.JgPublishDirectoryDetail;
import com.exchange.interfaces.service.IJgPublishDirectoryDetailService;
import com.exchange.common.core.text.Convert;

/**
 * 数据交换_目录清单子项 服务层实现
 * 
 * @author exchange
 * @date 2019-06-04
 */
@Service
public class JgPublishDirectoryDetailServiceImpl implements IJgPublishDirectoryDetailService 
{
	@Autowired
	private JgPublishDirectoryDetailMapper jgPublishDirectoryDetailMapper;

	/**
     * 查询数据交换_目录清单子项信息
     * 
     * @param manageDetailId 数据交换_目录清单子项ID
     * @return 数据交换_目录清单子项信息
     */
    @Override
	public JgPublishDirectoryDetail selectJgPublishDirectoryDetailById(String manageDetailId)
	{
	    return jgPublishDirectoryDetailMapper.selectJgPublishDirectoryDetailById(manageDetailId);
	}
	
	/**
     * 查询数据交换_目录清单子项列表
     * 
     * @param jgPublishDirectoryDetail 数据交换_目录清单子项信息
     * @return 数据交换_目录清单子项集合
     */
	@Override
	public List<JgPublishDirectoryDetail> selectJgPublishDirectoryDetailList(JgPublishDirectoryDetail jgPublishDirectoryDetail)
	{
	    return jgPublishDirectoryDetailMapper.selectJgPublishDirectoryDetailList(jgPublishDirectoryDetail);
	}
	
    /**
     * 新增数据交换_目录清单子项
     * 
     * @param jgPublishDirectoryDetail 数据交换_目录清单子项信息
     * @return 结果
     */
	@Override
	public int insertJgPublishDirectoryDetail(JgPublishDirectoryDetail jgPublishDirectoryDetail)
	{
	    return jgPublishDirectoryDetailMapper.insertJgPublishDirectoryDetail(jgPublishDirectoryDetail);
	}
	
	/**
     * 修改数据交换_目录清单子项
     * 
     * @param jgPublishDirectoryDetail 数据交换_目录清单子项信息
     * @return 结果
     */
	@Override
	public int updateJgPublishDirectoryDetail(JgPublishDirectoryDetail jgPublishDirectoryDetail)
	{
	    return jgPublishDirectoryDetailMapper.updateJgPublishDirectoryDetail(jgPublishDirectoryDetail);
	}

	/**
     * 删除数据交换_目录清单子项对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJgPublishDirectoryDetailByIds(String ids)
	{
		return jgPublishDirectoryDetailMapper.deleteJgPublishDirectoryDetailByIds(Convert.toStrArray(ids));
	}
	
}
